import { _decorator, Component, Node, SpringJoint2D, Sprite, UITransform,Animation, AnimationClip, animation, SpriteFrame } from 'cc';
import { EnemyManager } from '../../Base/EnemyManager';
import { IEntity } from '../../levels';
import { IronSkeletonStateMachine } from './IronSkeletonStateMachine';
const { ccclass, property } = _decorator;



@ccclass('IronSkeletonManager')
export class IronSkeletonManager extends EnemyManager {
  // 初始化
  async init(params:IEntity) {
    // 3. 初始化状态机
    this.fsm = this.addComponent(IronSkeletonStateMachine)
    await this.fsm.init()
    super.init(params)  // 调用父类初始化
  }

}
